12
https://raw.githubusercontent.com/Pingvin235/bgerp/master/src/ru/bgcrm/plugin/bgbilling/proto/model/status/ContractStatus.java
package ru.bgcrm.plugin.bgbilling.proto.model.status;

import java.util.Date;

import ru.bgcrm.model.Id;
import ru.bgcrm.model.PeriodSet;

public class ContractStatus
	extends Id
	implements PeriodSet
{
	public static final int ACTIVE = 0; // 0 активен
	public static final int ON_DISCONNECT = 1; // 1 на отключении
	public static final int DISABLED = 2; // 2 отключен
	public static final int CLOSED = 3; // 3 закрыт
	public static final int SUSPENDED = 4; // 4 приостановлен
	public static final int ON_CONNECT = 5; // 5 на подключении

	private String comment;
	private int statusId;
	private String status;
	private Date dateFrom;
	private Date dateTo;

	public String getComment()
	{
		return comment;
	}

	public void setComment( String comment )
	{
		this.comment = comment;
	}

	public int getStatusId()
	{
		return statusId;
	}

	public void setStatusId( int statusId )
	{
		this.statusId = statusId;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus( String status )
	{
		this.status = status;
	}

	public Date getDateFrom()
	{
		return dateFrom;
	}

	@Override
	public void setDateFrom( Date dateFrom )
	{
		this.dateFrom = dateFrom;
	}

	public Date getDateTo()
	{
		return dateTo;
	}

	@Override
	public void setDateTo( Date dateTo )
	{
		this.dateTo = dateTo;
	}
}
